<?php

namespace App\Exceptions\Code;

class ErrorCode
{

    const SUCCESS =200;//成功

    const FAILED = 10000;//失败

    /*
    |--------------------------------------------------------------------------
    | 101** 加解密参数问题
    |--------------------------------------------------------------------------
    |
    */
    const DECRYPT_FAILED = 10100;//解密失败

    const DATA_MISSING = 10110;//缺少data数据

    const NOT_FOUND_HTTP = 10120;//缺少data数据
    /*
    |--------------------------------------------------------------------------
    | 102** 登录token
    |--------------------------------------------------------------------------
    |
    */

    const AUTHENTICATION_ERROR = 10200;//认证失败

    const TOKEN_MISSING = 10210;//缺少token

    const VerificationCodeHasExpired = 10220;//验证码过期

    /*
    |--------------------------------------------------------------------------
    | 103** 权限
    |--------------------------------------------------------------------------
    |
    */

    /*
    |--------------------------------------------------------------------------
    | 104** 业务异常
    |--------------------------------------------------------------------------
    |
    */
    const SERVICE_ERROR = 10400;//服务器异常

    const VALIDATION_FAILED = 10410;//请求参数异常

    const NOT_DOCTOR = 10420;//当前用户不是医生

}
